package com.bwc.aidemo.http


import com.bwc.aidemo.paoqian.SportWorkflowRequest
import com.bwc.aidemo.paozhong.SportRequest
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {
    @Headers("Content-Type: application/json")
    @POST("v3/chat?")
    fun sendMessage(@Query("conversation_id") conversationId: String, @Body request: ChatRequest): Call<ResponseBody>

    @Headers("Content-Type: application/json")
    @POST("v1/workflow/run")
    fun sendVoice( @Body request: SportRequest): Call<ResponseBody>

    @Headers("Content-Type: application/json")
    @POST("v1/workflow/run")
    fun sendVoices( @Body request: SportWorkflowRequest): Call<ResponseBody>

}
